﻿namespace Bing.Numeric;

/// <summary>
/// 数值常量
/// </summary>
public static class NumberConst
{
    /// <summary>
    /// 1
    /// </summary>
    public static int One => 1;

    /// <summary>
    /// int 最大值
    /// </summary>
    public static int IntMax => int.MaxValue;

    /// <summary>
    /// int 最小值
    /// </summary>
    public static int IntMin => int.MinValue;

    /// <summary>
    /// long 最大值
    /// </summary>
    public static long LongMax => long.MaxValue;

    /// <summary>
    /// long 最小值
    /// </summary>
    public static long LongMin => long.MinValue;

    /// <summary>
    /// float 最大值
    /// </summary>
    public static float FloatMax => float.MaxValue;

    /// <summary>
    /// float 最小值
    /// </summary>
    public static float FloatMin => float.MinValue;

    /// <summary>
    /// double 最大值
    /// </summary>
    public static double DoubleMax => double.MaxValue;

    /// <summary>
    /// double 最小值
    /// </summary>
    public static double DoubleMin => double.MinValue;

    /// <summary>
    /// decimal 最大值
    /// </summary>
    public static decimal DecimalMax => decimal.MaxValue;

    /// <summary>
    /// decimal 最小值
    /// </summary>
    public static decimal DecimalMin => decimal.MinValue;

    /// <summary>
    /// short 最大值
    /// </summary>
    public static short ShortMax => short.MaxValue;

    /// <summary>
    /// short 最小值
    /// </summary>
    public static short ShortMin => short.MinValue;

    /// <summary>
    /// ushort 最大值
    /// </summary>
    public static ushort UShortMax => ushort.MaxValue;

    /// <summary>
    /// ushort 最小值
    /// </summary>
    public static ushort UShortMin => ushort.MinValue;
}